\hypertarget{classduye_1_1_xml_text}{\section{duye\-:\-:Xml\-Text Class Reference}
\label{classduye_1_1_xml_text}\index{duye\-::\-Xml\-Text@{duye\-::\-Xml\-Text}}
}


X\-M\-L text. A text node can have 2 ways to output the next. \char`\"{}normal\char`\"{} output and C\-D\-A\-T\-A. It will default to the mode it was parsed from the X\-M\-L file and you generally want to leave it alone, but you can change the output mode with Set\-C\-D\-A\-T\-A() and query it with C\-D\-A\-T\-A().  




{\ttfamily \#include $<$duye\-\_\-xml.\-h$>$}

Inheritance diagram for duye\-:\-:Xml\-Text\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classduye_1_1_xml_text}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classduye_1_1_xml_text_ad4ba50c44d1f0d9a8993a0ed1a8f9428}{\hyperlink{classduye_1_1_xml_text_ad4ba50c44d1f0d9a8993a0ed1a8f9428}{Xml\-Text} (const char $\ast$init\-Value)}\label{classduye_1_1_xml_text_ad4ba50c44d1f0d9a8993a0ed1a8f9428}

\begin{DoxyCompactList}\small\item\em Constructor for text element. By default, it is treated as normal, encoded text. If you want it be output as a C\-D\-A\-T\-A text element, set the parameter \-\_\-cdata to 'true'. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_text_aa39a69a4db2d68ee44e8403185412d01}{\hyperlink{classduye_1_1_xml_text_aa39a69a4db2d68ee44e8403185412d01}{Xml\-Text} (const std\-::string \&init\-Value)}\label{classduye_1_1_xml_text_aa39a69a4db2d68ee44e8403185412d01}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_text_afef5b1d35c31b23f4fd98a3a7437f299}{{\bfseries Xml\-Text} (const \hyperlink{classduye_1_1_xml_text}{Xml\-Text} \&copy)}\label{classduye_1_1_xml_text_afef5b1d35c31b23f4fd98a3a7437f299}

\item 
\hypertarget{classduye_1_1_xml_text_a263badbdd9683649f821430c0e06ed75}{\hyperlink{classduye_1_1_xml_text}{Xml\-Text} \& {\bfseries operator=} (const \hyperlink{classduye_1_1_xml_text}{Xml\-Text} \&base)}\label{classduye_1_1_xml_text_a263badbdd9683649f821430c0e06ed75}

\item 
virtual void \hyperlink{classduye_1_1_xml_text_a5354f8e3a2b2169125ee308fced53a20}{print} (F\-I\-L\-E $\ast$cfile, int depth) const 
\begin{DoxyCompactList}\small\item\em All Gny\-Xml classes can print themselves to a filestream or the string class (G\-Xml\-String in non-\/\-S\-T\-L mode, std\-::string in S\-T\-L mode.) Either or both cfile and str can be null. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_text_a205538dcfdd76456b76166b27a9cf17b}{virtual void {\bfseries xml\-To\-Str} (std\-::string \&out\-Xml, int depth) const }\label{classduye_1_1_xml_text_a205538dcfdd76456b76166b27a9cf17b}

\item 
\hypertarget{classduye_1_1_xml_text_a4b8b87e8b1a4a694bf9f457c980cb7da}{bool \hyperlink{classduye_1_1_xml_text_a4b8b87e8b1a4a694bf9f457c980cb7da}{cdata} () const }\label{classduye_1_1_xml_text_a4b8b87e8b1a4a694bf9f457c980cb7da}

\begin{DoxyCompactList}\small\item\em Queries whether this represents text using a C\-D\-A\-T\-A section. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_text_a28867fd26968298e32770504f41c2dfc}{void \hyperlink{classduye_1_1_xml_text_a28867fd26968298e32770504f41c2dfc}{set\-Cdata} (bool \hyperlink{classduye_1_1_xml_text_a4b8b87e8b1a4a694bf9f457c980cb7da}{cdata})}\label{classduye_1_1_xml_text_a28867fd26968298e32770504f41c2dfc}

\begin{DoxyCompactList}\small\item\em Turns on or off a C\-D\-A\-T\-A representation of text. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_text_aea6c981ba5896654cf7e37bbf88555d8}{virtual const char $\ast$ \hyperlink{classduye_1_1_xml_text_aea6c981ba5896654cf7e37bbf88555d8}{parse} (const char $\ast$p, Xml\-Parsing\-Data $\ast$data, Xml\-Encoding encoding)}\label{classduye_1_1_xml_text_aea6c981ba5896654cf7e37bbf88555d8}

\begin{DoxyCompactList}\small\item\em Cast to a more defined type. Will return null not of the requested type. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_text_a990c133754619033ffd0d52d33ae4c33}{virtual const \hyperlink{classduye_1_1_xml_text}{Xml\-Text} $\ast$ \hyperlink{classduye_1_1_xml_text_a990c133754619033ffd0d52d33ae4c33}{to\-Text} () const }\label{classduye_1_1_xml_text_a990c133754619033ffd0d52d33ae4c33}

\begin{DoxyCompactList}\small\item\em Cast to a more defined type. Will return null not of the requested type. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_text_aa3f92eacf86bd0699e73e126a5a178d0}{virtual \hyperlink{classduye_1_1_xml_text}{Xml\-Text} $\ast$ \hyperlink{classduye_1_1_xml_text_aa3f92eacf86bd0699e73e126a5a178d0}{to\-Text} ()}\label{classduye_1_1_xml_text_aa3f92eacf86bd0699e73e126a5a178d0}

\begin{DoxyCompactList}\small\item\em Cast to a more defined type. Will return null if not of the requested type. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_text_aefdfa21fac73a0bb9fd8620c6c68de6b}{virtual bool \hyperlink{classduye_1_1_xml_text_aefdfa21fac73a0bb9fd8620c6c68de6b}{accept} (\hyperlink{classduye_1_1_xml_visitor}{Xml\-Visitor} $\ast$content) const }\label{classduye_1_1_xml_text_aefdfa21fac73a0bb9fd8620c6c68de6b}

\begin{DoxyCompactList}\small\item\em Walk the X\-M\-L tree visiting this node and all of its children. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classduye_1_1_xml_text_a957e55d9a64f17b06cef97649149308b}{virtual \hyperlink{classduye_1_1_xml_node}{Xml\-Node} $\ast$ \hyperlink{classduye_1_1_xml_text_a957e55d9a64f17b06cef97649149308b}{clone} () const }\label{classduye_1_1_xml_text_a957e55d9a64f17b06cef97649149308b}

\begin{DoxyCompactList}\small\item\em \mbox{[}internal use\mbox{]} Creates a new Element and returns it. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_text_a0e27f0552b1ac287efc62c46b9ddd8b5}{void {\bfseries copy\-To} (\hyperlink{classduye_1_1_xml_text}{Xml\-Text} $\ast$target) const }\label{classduye_1_1_xml_text_a0e27f0552b1ac287efc62c46b9ddd8b5}

\item 
\hypertarget{classduye_1_1_xml_text_ac0084fdb1476a80773cc5d2ab12a9b6c}{bool {\bfseries blank} () const }\label{classduye_1_1_xml_text_ac0084fdb1476a80773cc5d2ab12a9b6c}

\item 
\hypertarget{classduye_1_1_xml_text_af164951ee013f4f5e9518c671a30325b}{virtual void {\bfseries stream\-In} (std\-::istream $\ast$in, std\-::string $\ast$tag)}\label{classduye_1_1_xml_text_af164951ee013f4f5e9518c671a30325b}

\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classduye_1_1_xml_text_abedc393b34ee7d5d9558e7736cc0f032}{class {\bfseries Xml\-Element}}\label{classduye_1_1_xml_text_abedc393b34ee7d5d9558e7736cc0f032}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
X\-M\-L text. A text node can have 2 ways to output the next. \char`\"{}normal\char`\"{} output and C\-D\-A\-T\-A. It will default to the mode it was parsed from the X\-M\-L file and you generally want to leave it alone, but you can change the output mode with Set\-C\-D\-A\-T\-A() and query it with C\-D\-A\-T\-A(). 

\subsection{Member Function Documentation}
\hypertarget{classduye_1_1_xml_text_a5354f8e3a2b2169125ee308fced53a20}{\index{duye\-::\-Xml\-Text@{duye\-::\-Xml\-Text}!print@{print}}
\index{print@{print}!duye::XmlText@{duye\-::\-Xml\-Text}}
\subsubsection[{print}]{\setlength{\rightskip}{0pt plus 5cm}virtual void duye\-::\-Xml\-Text\-::print (
\begin{DoxyParamCaption}
\item[{F\-I\-L\-E $\ast$}]{cfile, }
\item[{int}]{depth}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classduye_1_1_xml_text_a5354f8e3a2b2169125ee308fced53a20}


All Gny\-Xml classes can print themselves to a filestream or the string class (G\-Xml\-String in non-\/\-S\-T\-L mode, std\-::string in S\-T\-L mode.) Either or both cfile and str can be null. 

This is a formatted print, and will insert tabs and newlines.

(For an unformatted stream, use the $<$$<$ operator.) 

Implements \hyperlink{classduye_1_1_xml_base_aeb28d8aeec84aad3ce290c6cc3a5ec06}{duye\-::\-Xml\-Base}.



The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Z\-:/duye/src/duyebase/utils/duye\-\_\-xml.\-h\end{DoxyCompactItemize}
